package cn.jiyun.feign;

import cn.jiyun.pojoday08.Course;
import cn.jiyun.pojoday08.CourseVO;
import cn.jiyun.pojoday11.PaperVO;
import cn.jiyun.pojoday15.Train;
import cn.jiyun.pojoday15.TrainDTO;
import cn.jiyun.pojoday15.TrainVO;
import com.github.pagehelper.PageInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @Author: 小周
 * @Package: cn.jiyun.feign
 * @Project: 2210A-project1
 * @name: TestService
 * @Date: 2023/8/23 19:34
 * @Filename: TestService
 */
@FeignClient(value = "day15train")
public interface TestService1 {



    @RequestMapping("/train/findtNum")
    public String findtNum(@RequestParam("eid") String eid);
    @RequestMapping("/train/toTrain")
    public List<TrainVO> toTrain(@RequestParam("eid") String s);
    @RequestMapping("/train/toTrainAll")
    PageInfo<TrainVO> toTrainAll(@RequestBody TrainDTO trainDTO);
    @RequestMapping("/train/findCourseByTid")
    List<Course> findCourseByTid(@RequestParam("tid") String tid);
    @RequestMapping("/train/findPaperByTid")
    List<PaperVO> findPaperByTid(@RequestParam("tid") String tid);
    @RequestMapping("/train/findMyCourse")
    List<CourseVO> findMyCourse(@RequestParam("eid") String eid);
    @RequestMapping("/train/findMyTrain")
    List<TrainVO> findMyTrain(@RequestParam("eid") String eid);

    //根据用户id  去查询竞赛数量



}
